//
//  LaunchPage.swift
//  Casecord
//
//  Created by baozi on 2024/1/5.
//

import SwiftUI

struct LaunchPage: View {
    var body: some View {
        ZStack {
            Image("launchbg")
                .resizable()
                .aspectRatio(contentMode: .fill)
                .frame(maxWidth: .infinity, maxHeight: .infinity)
                .ignoresSafeArea()
        }
        .onAppear(perform: {
            AppService.to.prepare()
            Task {
              await  UserService.shared.readUserData()
            }
        })
    }
}

#Preview {
    LaunchPage()
}
